import asyncio
import websockets


async def hello():
    uri = "ws://localhost:8899"
    async with websockets.connect(uri) as websocket:
        name = "Alice"

        await websocket.send(name)
        print(f"> {name}")

        greeting = await websocket.recv()
        print(f"< {greeting}")


asyncio.run(hello())
